<template>
  <div>
    <label>{{ title }}</label>
    <input :type="type" @input="handleInput" :value="value" />
  </div>
</template>

<script>
export default {
  props: ["title", "type", "value"],
  methods: {
    handleInput(el) {
        console.log(el.target.value);
      this.$emit("input", el.target.value);
    },
  },
};
</script>

<style>
</style>